import users from "./modules/users"

// 框架内
const frameIn = [users, {
    path: "/main",
    component: () =>
        import ("../views/main") //主页面
}, {
    path: "/",
    redirect: "/login" //重定向
}]

// 框架外
const frameOut = [{
        path: "/login",
        component: () =>
            import ("../views/users/login") //用户注册
    },
    {
        path: "/register",
        component: () =>
            import ("../views/users/register") //用户登录
    },
]

export default [
    ...frameIn,
    ...frameOut
]